package com.itheima.service.db;


import com.itheima.domain.db.Report;

import java.util.List;

public interface ReportService {
    //通过用户id查找
    Report findByUserIdAndQuestionnaireId(Long userId,String questionnaireId);
    //保存报告并返回id
    Long save(Report report,Boolean isNew);
    //通过报告id查询报告
    Report findById(Long reportId);

    List<Long> findSimilarYou(Integer score, Long id, String questionnaireId);

    Report findByQuestionnaireId(String id);
}
